<?php
namespace app\model;
use think\Config;

class Banner extends Base
{
    protected $name = 'banner';

    public function getPicUrlAttr($value,$data){
        $domain = Config::get('qiniu.domain');
        return 'http://'.$domain.'/'.$data['pic'];
    }
}